package text111;

import java.util.Arrays;

public class Solution6 {
	 public int findRepeatNumber(int[] nums) {
         	int target = 0;
         	Arrays.sort(nums);
         	for (int i = 0; i < nums.length-1; i++) {
				
					if (nums[i]==nums[i+1]) {
						target = nums[i];
						break;
				
				}
			}
         	return target;
	    }
}
